import formBuilder from "@/comps/form/formBuilder";
import apiCommunity from "@/pages/v1/pm/Community/js/apiCommunity";

export default function () {
    let fb = formBuilder()
    fb.setLabelPosition("right").setLabelWidth(100)
    fb.addText("name__regex").setLabel("费用标题").setSpan(3)
    fb.addText("house.name__regex").setLabel("楼栋号").setSpan(3)
    fb.addSelect("house.communityId","小区",3).setApi(apiCommunity.urlChoice)
    fb.addRadio("isPay","是否付款",3).setChoices([{label:"是",value:true},{ label: "否",value: false }])
    fb.addDateTime("startAt__gte","开始时间",3).setDateTypeMonth()
    fb.addDateTime("endAt__lte","截止时间",3).setDateTypeMonth()
    return fb
}